<script type="text/javascript" src="/include/dedeajax2.js"></script>
<script type="text/javascript">
    function CheckLogin(){
        var taget_obj = document.getElementById('headerbar');
        myajax = new DedeAjax(taget_obj,false,false,'','','');
        myajax.SendGet2("{dede:global.cfg_cmspath/}/member/ajax_loginsta.php");
        DedeXHTTP = null;
    }
</script>
<div id="headerbar">
    <div id="loginfo">游客，您好欢迎来到中国艺术名家协会！ [<a href="{dede:global.cfg_memberurl/}/login.php">登录</a>·<a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew">注册</a>]</div>
</div>
<script type="text/javascript">
    CheckLogin();
</script>
<div id="header">
    <div id="header_bg"><a href="#" id="logo"></a></div>
    <div id="nav">
        <ul id="navbar">
            <li><a href="{dede:global.cfg_cmsurl/}/">首页</a></li>
            {dede:channel type='top' row='7' currentstyle='<li><a href="~typelink~" class="cur">~typename~</a></li>'}
            <li><a href="[field:typeurl/]">[field:typename/]</a></li>
            {/dede:channel}
        </ul>
    </div>
    <div id="slider">
        <a href="#"><img src="{dede:global.cfg_templets_skin/}/images/img_banner.jpg" alt="" /></a>
    </div>
</div>